/*********************************************************************
*
*   MODULE NAME:
*       vts_gm862_gps_test.pde - Testing Sketch For GM862-GPS
*
*   DESCRIPTION:
*       Testing Sketch For GM862-GPS
*
* Copyright 2011 by KU onTime
*---------------------------------------------------------------------
* Version: 1.1 - Style changes
* Version: 1.0 - Initial development
*
*********************************************************************/

/*--------------------------------------------------------------------
                            GENERAL INCLUDES
--------------------------------------------------------------------*/
#include "vts_gm862_gps.h"

/*--------------------------------------------------------------------
                            LITERAL CONSTANTS
--------------------------------------------------------------------*/

#define POWER_PIN 		( 22 )  	/* GM862_GPS Power Pin    		*/
#define POWER_SENSE_PIN ( 24 )  	/* GM862_GPS Power Sense Pin	*/

/*--------------------------------------------------------------------
                                 TYPES
--------------------------------------------------------------------*/

/*--------------------------------------------------------------------
                           PROJECT INCLUDES
--------------------------------------------------------------------*/

/*--------------------------------------------------------------------
                            MEMORY CONSTANTS
--------------------------------------------------------------------*/

/*--------------------------------------------------------------------
                               VARIABLES
--------------------------------------------------------------------*/
vts_gps_data_type		vts_GPS_Data;
									/* GM862-GPS NMEA Data			*/
vts_GM862_GPS			vts_GM862_Interface( &Serial3, POWER_PIN, POWER_SENSE_PIN );								
									/* GM862-GPS Interface			*/

/*--------------------------------------------------------------------
                                 MACROS
--------------------------------------------------------------------*/

/*--------------------------------------------------------------------
                              PROCEDURES
--------------------------------------------------------------------*/

/*********************************************************************
*
*   PROCEDURE NAME:
*       setup - Initialization
*
*   DESCRIPTION:
*       Initialize variables, pin modes, and start libraries.  Will
*		only run once following a power-up cycle
*
*********************************************************************/

void setup()						/* Initialization				*/
{
/*----------------------------------------------------------
Procedures
----------------------------------------------------------*/
delay( 5000 );
Serial.begin( 19200 ); 
Serial.println( "GM862-GPS Test Module\n" );

vts_GM862_Interface.Power_On();
delay( 5000 );
vts_GM862_Interface.Initialize();
vts_GM862_Interface.Version_Info();
vts_GM862_Interface.Power_Off();

}	/* setup() */
 

/*********************************************************************
*
*   PROCEDURE NAME:
*       loop - Loop Consecutively
*
*   DESCRIPTION:
*       Code will loop consecutively, allowing your program to change
*		and respond as it runs. Code in the loop() section is used to
*		actively control the microcontroller
*
*********************************************************************/

void loop()							/* Loop Consecutively			*/
	
{
/*----------------------------------------------------------
Procedures
----------------------------------------------------------*/

}	/* loop() */
